import http from './http'
const createAdmin = (params)=> {
    return http.post('/api/admin/create', params)
}
const findAdmin = (id)=> {
    return http.post('/api/admin/findOne', {id})
}
const findList = (params)=> {
    return http.post('/api/admin/findAll',params)
}
const activeAdmin = (id)=> {
    return http.post('/api/admin/active',{id})
}
const disactiveAdmin = (id)=> {
    return http.post('/api/admin/disactive',{id})
}
const updateAdmin = (params)=> {
    return http.post('/api/admin/update',params)
}

export { createAdmin, findAdmin, findList, activeAdmin, disactiveAdmin, updateAdmin }